package com.day0929.mobilephone;

public class MainText {
    public static void main(String[] args) {
        Phone phone = new CommonHandset();
        phone.setType("翻盖");;
        phone.setBrand("三星");
        System.out.println(phone.getType());
        System.out.println(phone.getBrand());
        phone.call();
        phone.info();
        phone.sendInfo();
        ((CommonHandset) phone).playWirting();
        Phone phone1 = new AptitudeHandset();
        phone1.setType("触屏");
        phone1.setBrand("小米");
        System.out.println(phone1.getType());
        System.out.println(phone1.getBrand());
        ((AptitudeHandset) phone1).playWirting();
        phone1.sendInfo();
        phone1.info();
        phone1.call();
        ((AptitudeHandset) phone1).netWork();
        ((AptitudeHandset) phone1).takePictures();
    }
}
